package cn.dkdoo.utils.config.rollbackData;

/**
 * @author nicky
 * @date 2021/7/17 下午4:33
 */
public class RollbackDetail {
    private Object data;

    /**
     * 操作类型
     */
    private int type;

    public RollbackDetail(Object data, TraOperationType type) {
        this.data = data;
        this.type = type.getType();
    }

    public Object getData() {
        return data;
    }

    public Integer getType() {
        return type;
    }
}
